package jiekou3;

/**
 * 医生类
 */
public class Doctor extends Role implements Treat,SelfIntroduce{
    public Doctor() {
    }

    public Doctor(String name, int level) {
        super(name, level);
    }

    @Override
    public void treat() {
        System.out.println(getName() + "使用了治疗技能");
    }

    @Override
    public void selfIntroduce() {
        System.out.println("我是医生");
    }
}
